
<?php if ($this->pageCount): ?>
    <div class="paginationControl">      
        <?php if (isset($this->previous)): ?>
            <a class="pagin-item prev fl" href="<?php echo $this->url(array('page' => $this->previous)); ?>">&lt; Poprzednia</a> 
        <?php else: ?>
            <span class="pagin-item disabled prev fl">Poprzednia</span> 
        <?php endif; ?>
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?>
                <a class="pagin-item" href="<?php echo $this->url(array('page' => $page)); ?>">
                    <?php echo $page; ?>
                </a> 
            <?php else: ?>
                <a class="pagin-item current" href="<?php echo $this->url(array('page' => $page)); ?>">
                    <?php echo $page; ?>
                </a> 
            <?php endif; ?>
        <?php endforeach; ?>

        <?php if (isset($this->next)): ?>
            <a class="pagin-item next fr" href="<?php echo $this->url(array('page' => $this->next)); ?>">Następna &qt; </a>
        <?php else: ?>
            <span class="pagin-item disabled next fr">Następna</span>
        <?php endif; ?>

        <div class="cls"></div>
    </div>
<?php endif; ?>